package test.controller;

import java.util.Observable;
import java.util.Observer;

import test.service.ChatObservable;

public class WakeUper  implements Observer {
	private Pauser pauser;


	public WakeUper(Pauser pauser) {
		super();
		this.pauser = pauser;
	}

	@Override
	public void update(Observable o, Object arg) {
		if (o instanceof ChatObservable) {
			pauser.wake();
		}
	}
}
